package com.xrkj.b2c.service.impl.bus;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xrkj.b2c.dao.bus.BusShopPriceMapper;
import com.xrkj.b2c.model.bus.BusShopPrice;
import com.xrkj.b2c.service.bus.BusShopPriceService;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B><BR>
 * <B>中文类名：</B>商品价格服务类<BR>
 * <B>概要说明：</B><BR>
 * 
 * @author 赵子靖
 * @since 2018年07月15日
 */
@Service
public class BusShopPriceServiceImpl implements BusShopPriceService {
    @Autowired
    private BusShopPriceMapper shopDao;

    @Override
    public int deleteShopPrice(String id) {
        return shopDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insertShopPrice(BusShopPrice shop) {
        return shopDao.insertSelective(shop);
    }

    @Override
    public int updateShopPrice(BusShopPrice shop) {
        return shopDao.updateByPrimaryKeySelective(shop);
    }

    @Override
    public BusShopPrice selectByPrimaryKey(String id) {
        return shopDao.selectByPrimaryKey(id);
    }

    @Override
    public Integer findShopPriceTotal(Map<String, Object> paramter) {
        return shopDao.findShopPriceTotal(paramter);
    }

    @Override
    public List<BusShopPrice> findShopPriceList(Map<String, Object> paramter) {
        return shopDao.findShopPriceList(paramter);
    }

}
